﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IPagedList<sp_GetPartnerResult>>" %>
<ul>
    <%
        foreach (sp_GetPartnerResult item in ViewData.Model)
        {
    %>
   <li><a href="<%=FRouter._("sanpham",item.ID.ToString(),item.PartnerName) %>">
        <img src="<%=Constants.PHOTO_PATH_ROOT_PARTNER + item.Logo%>" width="132" height="120" />
        <div class="pname">
            <%=HttpUtility.HtmlEncode(item.PartnerName) %></div>
    </a>
        <div>
            <%=HttpUtility.HtmlEncode(item.Status) %></div>
        <div class="pcprice">
            <%="Giá: " + (item.CurrentPrice == null ? "Call" : String.Format("{0:0,0} d", item.CurrentPrice))%>
        </div>
        <div>
            <span>Giá cũ: </span><span class="linethrough">
                <%=(item.OldPrice != null ? String.Format("{0:0,0} d", item.OldPrice) : "")%></span>
        </div>
        <div>
            Tiết kiệm :
            <%=HttpUtility.HtmlEncode(item.DiscountInfo)%>
        </div>
       <div class="fnormal">
            Xuất xứ :
            <%=HttpUtility.HtmlEncode(item.Manufacturer)%>
        </div>
        <div>
            <a href="<%=FRouter._("dathang",item.ID.ToString(),item.PartnerName)%>">
                <img class="nborder" src="../../Content/Images/muahang.jpg" /></a>
        </div>
    </li>
    <% } %>
</ul>
<div class="clrfix">    
</div>
<div class="pagination">
    <%= Ajax.Pager(new AjaxOptions { UpdateTargetId = "pProductList", OnBegin = "beginPaging", OnSuccess = "successPaging", OnFailure = "failurePaging" },
                     ViewData.Model.PageSize, ViewData.Model.PageNumber, ViewData.Model.TotalItemCount, new { controller = "CategoryView", action = "Index" })%>
</div>
